//
//  ALLButtonViewController.m
//  ClassManager
//
//  Created by ihope99 on 2017/8/10.
//  Copyright © 2017年 GZX. All rights reserved.
//

#import "ALLButtonViewController.h"
#import "ALLButtonView.h"

@interface ALLButtonViewController ()

@end

@implementation ALLButtonViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    ALLButtonView *mLoadButtonView = [[ALLButtonView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 40)];
    mLoadButtonView.mTitleArray = @[@"首页",@"菜谱",@"达人",@"好吃地图",@"探店",@"plus",@"地图",@"哈哈哈",@"好好好"];
    [mLoadButtonView setTopButtonActionBlock:^(NSInteger index){
        DLog(@"我点击了第%lu个",index);
    }];
    [self.view addSubview:mLoadButtonView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
